package com.koron.order.change.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.change.bean.dto.OrderChangeDto;
import com.koron.order.change.bean.po.OrderChangePo;
import com.koron.order.change.bean.query.OrderChangeQuery;
import com.koron.order.change.bean.vo.OrderChangeDetailVo;
import com.koron.order.change.bean.vo.OrderChangeVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderChange)表服务接口
 *
 * @author zhouj
 * @since 2022-02-16 18:14:27
 */
public interface OrderChangeService {

    OrderChangePo insertOrUpdate(SessionFactory factory, OrderChangeDto orderChangeDto);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderChangePo> orderChangeList);

    int insert(SessionFactory factory, OrderChangePo orderChange);

    int insertBatch(SessionFactory factory, List<OrderChangePo> orderChangeList);

    int update(SessionFactory factory, OrderChangePo orderChange);

    int deleteById(SessionFactory factory, String id);

    OrderChangeDetailVo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, OrderChangeQuery query, PageQuery pageQuery);

    List<OrderChangeVo> queryList(SessionFactory factory, OrderChangeQuery query);

}
